public class Main {
    public static void main(String[] args) {
        Book[] books = new Book[5];
        books[0] = new Book("Title1", "Author1");
        books[1] = new Book("Title2", "Author2");
        books[2] = new Book("Title3", "Author3");
        books[3] = new Book("Title4", "Author4");
        books[4] = new Book("Title5", "Author5");

        for (Book book : books) {
            System.out.println("Title: " + book.getTitle() + ", Author: " + book.getAuthor());
        }
    }
}

class Book {
    private String title;
    private String author;

    public Book(String title, String author) {
        this.title = title;
        this.author = author;
    }

    public String getTitle() {
        return title;
    }

    public String getAuthor() {
        return author;
    }
}